package com.ruoyi.typing.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考试对象 exam
 * 
 * @author ruoyi
 * @date 2021-12-20
 */
public class Exam extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 考试ID */
    private Long examId;

    /** 考试名称 */
    @Excel(name = "考试名称")
    private String name;

    /** 类别 */
    @Excel(name = "类别")
    private String leibie;

    /** 文章ID */
    @Excel(name = "文章ID")
    private Long articleId;

    private Article article;

    /** 设定时间 */
    @Excel(name = "设定时间")
    private Long testTime;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 启用 */
    @Excel(name = "启用")
    private Integer active;

    public void setExamId(Long examId) 
    {
        this.examId = examId;
    }

    public Long getExamId() 
    {
        return examId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setLeibie(String leibie) 
    {
        this.leibie = leibie;
    }

    public String getLeibie() 
    {
        return leibie;
    }
    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }

    public Article getArticle() {
        return article;
    }

    public void setArticle(Article article) {
        this.article = article;
    }

    public void setTestTime(Long testTime) 
    {
        this.testTime = testTime;
    }

    public Long getTestTime() 
    {
        return testTime;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setActive(Integer active) 
    {
        this.active = active;
    }

    public Integer getActive() 
    {
        return active;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("examId", getExamId())
            .append("name", getName())
            .append("leibie", getLeibie())
            .append("articleId", getArticleId())
            .append("testTime", getTestTime())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("remark", getRemark())
            .append("active", getActive())
            .toString();
    }
}
